package dao.user;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import pojo.User;

public interface UserMapper {
/**
 * 查询用户列表
 */

public List<User> getUserListByMap(Map<String, String> userMap);

public List<User> getUserList(@Param("userName")String userName,
		                      @Param("userRole")Integer roleId);

public int add(User user);

public int modify(User user);

public int updatePwd(@Param("id")Integer id,@Param("userPassword") String pwd);

public int deleteUserById(@Param("id")Integer delId);

public List<User>getUserListByRoleId(@Param("userRole")Integer roleId);

public User getAddressListByUserId(@Param("id")Integer userId);
}
